package com.wsp.apimanagement.pojo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Size;

/**
 * Package: com.wsp.service.pojo.entity
 * Description： TODO
 *
 * @Author: 巫思平
 * Copyright: Copyright (c) 2020
 * Version: 1
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "资源")
public class Source {
    @ApiModelProperty("资源id")
    private long sourceId;

    @Size(max = 50)
    @ApiModelProperty("资源标题")
    private String sourceTitle;

    @ApiModelProperty("资源路径")
    private String sourcePath;

    @ApiModelProperty("资源封面")
    private String sourceCover;

    @ApiModelProperty("资源所在模块id")
    private long moduleId;

}
